package com.kctvjeju.web.common.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.crypto.password.StandardPasswordEncoder;

import com.kctvjeju.web.user.model.User;

public class KctvUserService implements UserDetailsService{
	@Autowired
	User user;

	@Override
	public User loadUserByUsername(String username){
		StandardPasswordEncoder encoder = new StandardPasswordEncoder();
		System.out.println("loadUserByUsername 호출");
		user = new User();
		
		user.setId(username);
		user.setPasswd(encoder.encode("abcd"));

		return user;
	}
}
